import request from "@/utils/request";

// 工作考核修改
export function AppraiseUpdate(data) {
  return request({
    url: "/backAdmin/workApi/appraise/update",
    method: "post",
    data,
  });
}
// 工作考核删除
export function AppraiseDelete(employeeWorkAppraiseIdList ) {
  return request({
    url: `/backAdmin/workApi/appraise/delete?employeeWorkAppraiseIdList=${employeeWorkAppraiseIdList}`,
    method: "POST",
  });
}
// 工作考核列表
export function listAppraise(query) {
  return request({
    url: "/backAdmin/workApi/appraise/list",
    method: "get",
    params: query,
  });
}

// 工作安排删除
export function delPlan(employeeWorkPlanIdList  ) {
  return request({
    url: `/backAdmin/workApi/plan/delete?employeeWorkPlanIdList=${employeeWorkPlanIdList}`,
    method: "POST",
  });
}



// 工作安排修改
export function workApiplanupdate(data) {
  return request({
    url: `/backAdmin/workApi/plan/update`,
    method: "post",
    data,
  });
}
// 工作安排新增
export function workApiplanadd(data) {
  return request({
    url: `/backAdmin/workApi/plan/add`,
    method: "post",
    data,
  });
}


// 工作安排列表
export function listPlan(query) {
  return request({
    url: "/backAdmin/workApi/plan/list",
    method: "get",
    params: query,
  });
}


// 工作记录删除
export function delRecord(employeeWorkRecordIdList ) {
  return request({
    url: `/backAdmin/workApi/record/delete?employeeWorkRecordIdList=${employeeWorkRecordIdList}`,
    method: "POST",
  });
}
// 工作记录列表
export function listRecord(query) {
  return request({
    url: "/backAdmin/workApi/record/list",
    method: "get",
    params: query,
  });
}


// 工作总结删除
export function delSummary(employeeWorkSummaryIdList  ) {
  return request({
    url: `/backAdmin/workApi/summary/delete?employeeWorkSummaryIdList=${employeeWorkSummaryIdList}`,
    method: "POST",
  });
}
// 工作总结列表
export function listSummary(query) {
  return request({
    url: "/backAdmin/workApi/summary/list",
    method: "get",
    params: query,
  });
}






// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "get",
  });
}

// 新增公告
export function addNotice(data) {
  return request({
    url: "/system/notice",
    method: "post",
    data: data,
  });
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: "/system/notice",
    method: "put",
    data: data,
  });
}

// 删除公告
export function delNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "delete",
  });
}
